/*
 * network.cpp
 *
 *  Created on: Nov 11, 2010
 *      Author: jessebeu
 */
#include "network.h"
#include "uarch/types.h"
#include "uarch/module.h"

Network_interface::Network_interface (Network *my_net, ModuleID moduleID, const char *name)
    : Module (moduleID, name)
{
    this->my_net = my_net;
}

Network_interface::~Network_interface ()
{

}

Network::Network (int num_connections, int nodes_per_interface, int first_id_offset)
{
    this->num_connections = num_connections;
    this->nodes_per_interface = nodes_per_interface;
    this->lower_range_id = first_id_offset;
    this->upper_range_id = first_id_offset + (num_connections * nodes_per_interface) - 1;
}

Network::~Network()
{

}
